﻿using ConfExpert.Datasets.MyDataTableAdapters;
using ConfExpert.Forms.Base;
using System;
using System.Windows.Forms;

namespace ConfExpert.Forms.Depo
{
    public partial class Fatura_AO : XForm
    {
        public Fatura_AO()
        {
            InitializeComponent();
        }

        private void Fatura_AO_Load(object sender, EventArgs e)
        {
            

            TAM.Fatura_AOTableAdapter = new Fatura_AOTableAdapter();
            TAM.Fatura_AOTableAdapter.Fill(ds.Fatura_AO);
            BindingSource bs = new BindingSource(ds, "Fatura_AO");
            AddBsToList(bs);
            InitGridView(gv, bs);
            gv.BestFitColumns();
        }

        private void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            EndEdits();
            TAM.Fatura_AOTableAdapter.Update(ds);
            ShowInfoMessage("Değişiklik kaydedildi.");
        }
    }
}
